{include file="header.html"}

<div class="page-header">
	<h6>
		系统设置
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			所有管理员
		</small>
		<div>
			<a href="?app=setting&act=manager_add">增加管理员</a>
		</div>
	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="setting" />
<input type="hidden" name="act" id="act" value="manager" />
<input type="text" name="id" id="id" value="{$id}" placeholder="ID" /> 
<input type="text" name="keyword" id="keyword" value="{$keyword}" placeholder="关键词" /> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>登录名称</th>
			<th>真实姓名</th>
			<th>上次登录时间</th>
			<th>上次登录IP</th>
			<th>登录次数</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$rs item=row name=row}
		<tr>
			<td>{$row.id}</td>
			<td style="text-align:left;">
				<a href="?app=setting&act=manager_add&id={$row.id}">{$row.name}</a>
			</td>
			<td style="text-align:left;">
				<a href="?app=setting&act=manager_add&id={$row.id}">{$row.real_name}</a>
			</td>
			<td align="center">{$row.last_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
			<td align="center">{$row.last_ip}</td>
			<td align="center">{$row.logins}</td>
			<td align="center">{if $row.status==1}正常{else}冻结{/if}</td>
			<td align="center">
			<a href="?app=setting&act=manager_add&id={$row.id}">编辑</a> 
			<a class="delete" href="?app=setting&act=manager_delete&id={$row.id}">删除</a> 
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="14" height="50">暂无记录</td></tr>
		{/foreach}
	</tbody>
</table>

<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>

{include file="footer.html"}